package com.mall_main.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.File;

@Validated
@Data
public class SellerAddGoodsDTO {
    @NotNull
    private long uid;
    @Range(min=1,max = 100000,message = "价格必须在1元到100000元之间")
    private int price;
    @Range(min=0,max = 10000,message = "库存必须在1到10000之间")
    private int inventory;
    @NotBlank
    private String info;
    private File picture;


}
